Determining relative amount of usage of data retaining device based on potential of charge storing device

ABSTRACT

A system, method and program product for determining a relative amount of usage of a data retaining device are disclosed. A charge storing device is coupled to a data retaining device in a manner that a use of the data retaining device triggers a charging of the charge storing device. In a period that the data retaining device idles, charges in the charge storing device decay due to natural means. As such, a potential of the charge storing device may be used to indicate an amount of usage of the data retaining device. A comparison of the potentials of two charge storing devices coupled one-to-one to two data retaining devices may be used as a basis to determine a relative amount of usage of each of the two data retaining devices comparing to the other.

BACKGROUND OF THE INVENTION

1. Technical Field

The invention relates generally to a usage of a data retaining device, and more particularly, to a method and system for determining a relative amount of usage of a data retaining device based on a potential of a charge storing device coupled to the data retaining device.

2. Background Art

An amount of usage of a data retaining device needs to be determined for various applications. For example, a multi-port cache is usually limited in size so that if the cache is full, some of the ports/word lines of the cache need to be refreshed to make room for new items. A cache replacement algorithm is usually used to select word lines to refresh. Examples of cache replacement algorithms include a Least Recently Used (LRU) algorithm which refreshes the least recently used word line first, and a Least Frequently Used (LFU) algorithm which refreshes the least frequently used word line first. These algorithms require keeping track of usage of a word line of the cache, which is very costly under the present state of the art technology.

Based on the above, there is a need in the art for a solution to determine a usage of a data retaining device in an inexpensive/efficient way.

SUMMARY OF THE INVENTION

A system, method and program product for determining a relative amount of usage of a data retaining device are disclosed. A charge storing device is coupled to a data retaining device in a manner that a use of the data retaining device triggers a charging of the charge storing device. On the other hand, in a period that the data retaining device idles, charges in the charge storing device decay due to natural means. As such, a potential of the charge storing device may be used to indicate an amount of usage of the data retaining device. A comparison of the potentials of two charge storing devices coupled one-to-one to two data retaining devices may be used as a basis for determining a relative amount of usage of each of the two data retaining devices by comparing one to the other.

A first aspect of the invention provides a method for determining a relative amount of usage of a data retaining device, the method comprising: providing a data retaining device, the data retaining device being coupled to a charge storing device in a manner that a use of the data retaining device triggers a charging of the charge storing device by a charge source; measuring a potential of the charge storing device; and determining a relative amount of usage of the data retaining device based on the measured potential.

A second aspect of the invention provides a system for determining a relative amount of usage of a data retaining device, the system comprising: a charge source; a charge storing device, the charge storing device being coupled to a data retaining device in a manner that a use of the data retaining device triggers a charging of the charge storing device by the charge source; means for measuring a potential of the charge storing device; and means for determining a relative amount of usage of the data retaining device based on the measured potential.

A third aspect of the invention provides a program product stored on a computer-readable medium, which when executed, enables a computer infrastructure to determine a relative amount of usage of a data retaining device, the program product comprising computer program code for enabling the computer infrastructure to: control measuring of a potential of a charge storing device, the charge storing device being coupled to a data retaining device in a manner that a use of the data retaining device triggers a charging of the charge storing device by a charge source; and determine a relative amount of usage of the data retaining device based on the measured potential.

The illustrative aspects of the present invention are designed to solve the problems herein described and/or other problems not discussed.

DESCRIPTION OF THE DRAWINGS

These and other features of this invention will be more readily understood from the following detailed description of the various aspects of the invention taken in conjunction with the accompanying drawings that depict various embodiments of the invention, in which:

FIG. 1 shows a schematic diagram of a system for determining a relative amount of usage of a data retaining device according to one embodiment of the invention.

FIG. 2 shows one embodiment of a hardware implementation of the invention with respect to one data retaining device.

FIG. 3 shows a block diagram of an illustrative computer system according to one embodiment of the invention.

FIG. 4 shows a flow diagram of an operation of a data retaining device usage determining system according to one embodiment of the invention.

It is noted that the drawings of the invention are not to scale. The drawings are intended to depict only typical aspects of the invention, and therefore should not be considered as limiting the scope of the invention. In the drawings, like numbering represents like elements among the drawings.

DETAILED DESCRIPTION

1. System Overview

FIG. 1 shows a schematic diagram of one embodiment of a system 10 for determining a relative amount of usage of a data retaining device 12. As shown in FIG. 1, data retaining sub-system 11, e.g., a multi-port cache, includes multiple data retaining devices 12 (two are shown, 12 a, 12 b), e.g., ports/word lines of cache 11. Each data retaining device 12 is coupled to a data access line 14 through a switch 16 (16 a, 16 b, respectively). Each switch 16 is controlled/designed to act consistently with a corresponding switch 18 (18 a, 18 b, respectively). According to one embodiment, specifically, a switch 16 and a corresponding switch 18 turn ON/OFF at substantially the same time, which is illustrated by a dotted line linking switches 16 and 18. It should be appreciated that an activity of a switch 18 may be delayed from an activity of the corresponding switch 16, which is controllable and is included in the current invention. It should be appreciated that switches 16 and 18 may include any mechanisms that control a connection and a disconnection between two components of a circuit.

A charge storing device 20, e.g., capacitor (20 a, 20 b), is couple between a charge source 22 (22 a, 22 b, respectively), e.g., a positive voltage supply (VDD), and a ground 24 (24 a, 24 b, respectively) through a switch 18 (18 a, 18 b, respectively). Charge sources 22 may vary in value depending on, e.g., a weighting assigned to them, as will be described later. As such, in the following description, a charge source 22 will be referred to as a weighted charge source (WCS) 22. Potentials, e.g., voltages, of capacitors 20 may be fed to comparator 26 as inputs to be compared therein.

The potential of a capacitor 20 and an output, e.g., a comparison result, of comparator 26 may be measured/obtained by a measuring device 27. It is appreciated that measuring device 27 may include any mechanism[s] that is capable of measuring capacitor 20 potential and/or comparator 26 output.

In operation, when a data retaining device 12, for example, 12 a, is accessed/used through data access line 14, with switch 16 a being turned on, the corresponding switch 18 a is also turned on, which enables a charging of capacitor 20 a by weighted charge source 22 a. As such, each use of data retaining device 12 a triggers a charging of capacitor 20 a, which causes an increase in the potential, e.g., voltage, of capacitor 20 a. On the other hand, during a period that data retaining device 12 a idles, with switches 16 a and 18 a being turned off, charges on capacitor 20 a decay due to natural means, which causes a decrease in the voltage of capacitor 20 a. As a consequence, capacitor 20 a is functionally coupled to data retaining device 12 a through the correspondence between switches 16 a and 18 a, and the potential, e.g., voltage, of capacitor 20 a may be used as an indicator of an amount of usage of data retaining device 12 a. In addition, a comparison of the potentials of capacitors 20 a and 20 b may be a basis for determining a relative amount of usage of data retaining device 12 a compared to data retaining device 12 b. For example, a lower potential of capacitor 20 a than that of capacitor 20 b may indicate that data retaining device 12 a has been less used than data retaining device 12 b, and may be a candidate for a refresh to make room for new data items. In the following description, a voltage of a capacitor 20 will be used as an example of a potential of the same, for illustrative purposes. Please note, as a certain use of data retaining device 12 a causes a fixed amount of charges to be injected onto capacitor 20 a, the voltage of capacitor 20 a is mainly determined by the amount of usage of data retaining device 12 a and the initial voltage of the same. That is, in a given period, the exact time when a use of data retaining device 12 a occurs does not make significant difference. As such, the current invention may be used with, inter alia, a Least Frequently Used algorithm for replacing cache.

According to one embodiment, a data retaining devices 12, e.g., 12 a, may be prioritized so that for the same amount of usages of data retaining devices 12 a, 12 b, capacitors 20 a, 20 b, respectively, may end with different voltage values. Various methods may used to achieve a priority. For example, the amount of charge injected onto a capacitor 20 may be controlled to reflect a priority of a data retaining device 12. For example, the sizes of weighted charge sources 22 coupled to each data retaining device 12 may be tuned/weighed to achieve injection of different charges onto different capacitors 20 for the same usage of data retaining devices 12. In addition, a decay rate of a capacitor 20 may be tuned/processed to reflect the priority of the related data retaining device 12. For example, if data retaining device 12 a has a priority over data retaining device 12 b, capacitor 20 a may be tuned to decay more slowly than capacitor 20 b.

As is appreciated, a capacitor 20 may be charged to an upper level such that the voltage of the capacitor 20 is no longer sensitive to further charging. In addition, a voltage of a capacitor 20 may decay to a lower level such that the voltage is no longer sensitive to further decay. As such, actions need to be taken to make sure that the voltage of a capacitor 20 has not reach the upper level or the lower level so that the voltage is valid to indicate a relative amount of usage of the related data retaining device 12. That is, a comparison in comparator 26 needs to yield a valid result. According to one embodiment, voltage of a capacitor 20 (here 20 a, 20 b) may be input into a comparator 28 (28 a, 28 b, respectively) to be compared with a signal 30 (30 a, 30 b, respectively). A signal 30 may be controlled to represent a minimum voltage for a capacitor 20 to maintain sensitivity to further decay or a maximum voltage for the capacitor 20 to maintain sensitivity to further charging.

In addition, a voltage level of a capacitor 20 may indicate the validity of data in data retaining device 12. For example, if the voltage of a capacitor 20 has decayed for a long time, the data stored in a data retaining device 12 may have also decayed to be invalid. As such, signal 30 may also be controlled to represent a minimum voltage level of a capacitor 20 to make sure that data stored in a data retaining device 12 is still valid.

A computer system 200 may be responsive to system 10. For example, computer system 200 may control measuring device 27 in performing measurements, and may receive the measurement results as data inputs. Upon processing these data inputs, computer system 200 may control an action on a data retaining device 12 of data retaining sub-system 11.

FIG. 2 shows one embodiment of a hardware implementation 100 of the invention regarding one data retaining device, e.g., 12 a (FIG. 1). As shown in FIG. 2, capacitor 20 a is coupled to multiple weighted charge sources 110 (110 a, 110 b, 110 c) through transistor stacks 120 (120 a, 120 b, 120 c, respectively). Please note, weighted charge sources 110 are collectively referred to as weighted charge source 22 a in FIG. 1. Each transistor stack 120 includes a transistor 122 (122 a, 112 b, 122 c, respectively) and a transistor 124 (124 a, 124 b, 124 c, respectively). A control signal 130 is coupled to the gates of transistors 122 through a one-shot-generator 132 including buffers 134, 136 and a latch 138. Outputs 150 (150 a, 150 b, 150 c) of an address comparator 140 are coupled to the gates of transistors 124 (124 a, 124 b, 124 c, respectively).

In operation, control signal 130 and outputs 150 (150 a, 150 b, 150 c) of address comparator 140 are used together to achieve the correspondence between switches 16 and 18 (FIG. 1). Control signal 130 may be activated upon each selection of a data retaining device 12, e.g., 12 a, of data retaining sub-system 11, e.g., a multi-port cache (FIG. 1). Control signal 130 may then be processed by one-shot-generator 132 to generate a signal to control the gates of transistors 122 (122 a, 122 b, 122 c). As such, transistors 122 may be turned on by control signal 130 when data retaining device 12 a is selected for a use (whatever type). Each output 150 represents a specific type of use of data retaining device 12 a (FIG. 1). For example, output 150 a may represent a “WRITE” action; output 150 b may represent a “READ” action; and output 150 c may represent an “ACCESS” action. As such, a transistor 124 may be turned on by an output 150 that indicates a specific type of use of data retaining device 12 a. For example, in the case that data retaining device 12 a is selected to be used for a “WRITE”, signal 130 turns on all transistors 122 because data retaining device 12 a is selected for a use, and output 150 a turns on transistor 124 a as the type of use is a “WRITE”, which triggers/enables a charging of capacitor 20 a by weighted charge source 110 a. Similarly, a “READ” action of data retaining device 12 a will charge capacitor 20 a by weighted charge source 110 b; and an “ACCESS” action will charge capacitor 20 a by weighted charge source 110 c.

According to one embodiment, a use of data retaining device 12 a may be assigned with a priority over other types of uses of the same. For example, the amount of charges injected onto capacitors 20 a through weighted charge source 110 a, which is related to “WRITE”, may be adjusted/controlled according to a certain policy, e.g., improving performance of data retaining sub-system 11. The three actions mentioned above, i.e., “WRITE”, “READ”, and “ACCESS”, each may require different cost of resources for reloading and have a different impact on the performance of data retaining sub-system 11 (FIG. 1). Charges injected onto capacitor 20 a for each of the three types of uses may be controlled to reflect the differences in the cost of resources. For instance, when a “WRITE” is performed to data retaining device 12 a (FIG. 1) that is not already located in data retaining sub-system 11, e.g., a multi-port cache, it may be controlled such that a larger amount of charges are injected into capacitor 20 a to reflect the performance loss of refetching that data from a memory, if the data is flushed and later refetched from the memory. The larger amount of charges make capacitor 20 a age/decay more slowly than, for example, data that has been recently fetched from the memory, since the latter is not “dirty” and does not need to be flushed back to memory. In this manner, a higher temporal weighting may be assigned to a “dirty” cache line/port, here 12 a (FIG. 1). In addition, it may also be controlled that the amount of charges injected onto capacitor 20 a for each different type of action, e.g., “WRITE”, “READ” and “ACCESS”, is different. For example, a higher temporal weighting may be assigned to a “READ” action over “WRITE” or “ACCESS” actions.

Various methods may be used to adjust/control the charges injected onto capacitor 20 a, and all are included in the current invention. For example, the size of weighted charge sources 110 may be tuned to differentiate the charges injected onto capacitor 20 a by each of them. For another embodiment, sizes of transistor stacks 120 may also be tuned to channel different amount of charges to capacitor 20 a for different uses. It should be appreciated that the various methods of controlling/adjusting charges injected onto capacitor 20 a may be used alone or in various combinations, which are all included in the current invention.

As has been described above, the operation of system 10 (FIG. 1), including the hardware implementation 100 (FIG. 2), may be controlled by computer system 200. Details of computer system 200 will be described below.

2. Computer System

FIG. 3 shows a block diagram of an illustrative computer system 200 according to one embodiment of the invention. In one embodiment, computer system 200 includes a memory 220, a processing unit (PU) 222, input/output devices (I/O) 224 and a bus 226. A database 228 may also be provided for storage of data relative to processing tasks. Memory 220 includes a program product 230 that, when executed by PU 222, comprises various functional capabilities described in further detail below. Memory 220 (and database 228) may comprise any known type of data storage system and/or transmission media, including magnetic media, optical media, random access memory (RAM), read only memory (ROM), a data object, etc. Moreover, memory 220 (and database 228) may reside at a single physical location comprising one or more types of data storage, or be distributed across a plurality of physical systems. PU 222 may likewise comprise a single processing unit, or a plurality of processing units distributed across one or more locations. I/O 224 may comprise any known type of input/output device including a network system, modem, keyboard, mouse, scanner, voice recognition system, CRT, printer, disc drives, etc. Additional components, such as cache memory, communication systems, system software, etc., may also be incorporated into computer system 200.

As shown in FIG. 3, program product 230 may include a data retaining device (DRD) usage determining system 232 that includes a data collector 240; a priority controller 242 including an activity priority controller 244 and a data retaining device (DRD) priority controller 246; a measurement controller 247; an implementer 248 including a comparison validity monitor 250 and a data validity monitor 252; and other system components 254. Other system components 254 may include any now known or later developed parts of a computer system 200 not individually delineated herein, but understood by those skilled in the art.

Inputs to computer system 200 include measurement result inputs 260 and user instruction inputs 262. Measurement result inputs 260 include measurement results of measuring device 27 (FIG. 1) regarding, e.g., a voltage of a capacitor 20 and/or a comparison result of comparator 26 (FIG. 1). User instruction inputs 262 include instructions of a user of computer system 200 regarding the operation of, inter alia, DRD usage determining system 232. For example, a user may instruct priority controller 242 with respect to a priority of a data retaining device 12 and a priority of a specific type of use (“WRITE”, “READ”, or “ACCESS”) of the data retaining device 12. These inputs may be obtained by data collector 240, and may be saved in database 228. Outputs of computer system 200 include instruction outputs 264 that are communicated to, inter alia, data retaining sub-system 11 to perform an action on a data retaining device 12, e.g., to refresh a data retaining device 12 (FIG. 1).

FIG. 4 shows a flow diagram of an operation of data retaining device usage determining system 232 according to one embodiment of the invention. Referring to FIGS. 1-4, in step S1, priority controller 242 determines a priority of a use of a data retaining device 12. Specifically, data retaining device (DRD) priority controller 246 determines a priority of a data retaining device, e.g., 12 a, over other data retaining device, e.g., 12 b. Activity priority controller 244 determines a priority of a type of use of data retaining device 12 a, e.g., a “WRITE”, over other types of use, e.g., “READ” or “ACCESS”. Various standards or policies may be used in determining priorities of a data retaining device 12 or a type of use of the data retaining device 12, and are all included in the current invention. For example, improving performance of data retaining sub-system 11 may be a policy in determining a priority. As described above, various methods may be used to implement a priority determined by priority controller 242, and are all included in the current invention.

Next in step S2, measurement controller 247 controls a measurement of a voltage of a capacitor 20. Any means to measure a voltage of a capacitor 20 may be used with the invention and controlled by measurement controller 247. The results of the measurements may be communicated to computer system 200 through measurement result inputs 260 and may be obtained by data collector 240. In addition, results of the comparisons made in comparator 26 may also be communicated to computer system 200 and obtained by data collector 240.

Next in step S3, implementer 248 determines a relative amount of usage of a data retaining device 12 based on the measured voltage of the related/coupled capacitor 20, and determines an action upon the data retaining device 12 based on the usage determination, which may be implemented by data retaining sub-system 11. As described above, a lower voltage of a capacitor 20, e.g., 20 a, indicates that the related data retaining device 12 a has been used less then other data retaining devices, e.g., 12 b. (FIG. 1). On the other hand, a higher voltage of capacitor 20 a indicates that data retaining device 12 a has been used more then data retaining devices 12 b. Based on the determined relative amount of usage of data retaining device 12 a, an action upon data retaining device 12 a may be determined by implementer 248. For example, in the case that data retaining sub-system 11 needs to refresh some of the data retaining devices 12, implementer 248 may determine that a data retaining device 12 with a lower relative amount of usage be chosen to be refreshed.

According to an alternative embodiment, implementer 248 may compare a measured voltage of a capacitor 20, e.g., 20 a, with a preset threshold, e.g., a minimum voltage value. If the measured voltage of capacitor 20 a meets the threshold, e.g., lower than the minimum voltage value, the related data retaining device 12 a is selected to be taken action upon, e.g., to be refreshed.

In addition, in step S3, comparison validity monitor 250 may optionally monitor whether a measured voltage of a capacitor 20 is valid to indicate a relative amount of usage of data retaining device 12. Specifically, comparison validity monitor 250 may control a signal 30 to represent an upper level threshold and a lower level threshold to be compared with a voltage of a capacitor 20, here e.g., 20 a. If the voltage of capacitor 20 a is lower than the upper level threshold and is higher than the lower level threshold, the voltage is considered valid to indicate a relative amount of usage of data retaining device 12 a. If voltage of capacitor 20 a is higher than the upper level threshold, or lower than the lower level threshold, voltage of capacitor 20 a is considered invalid to indicate a relative amount of usage of data retaining device 12 a. In addition, in the case that a comparison in comparator 26 does not generate a valid result, e.g., voltages of two capacitors 20 are the same, comparison validity monitor 150 may determine selecting a data retaining device 12 to take action upon based on other tests, e.g., a policy.

Moreover, data validity monitor 252 may optionally perform a data validity check. Specifically, data validity monitor 252 may determine whether a data in a data retaining device 12, e.g., 12 a, is valid by comparing a voltage of the related capacitor 20 a to a threshold which represents the minimum voltage of capacitor 20 a to indicate that the data in data retaining device 12 a is valid. Specifically, data validity monitor 252 may control signal 30 a (FIG. 1) to represent a least positive up-level (LPUL) voltage and/or a most positive down-level (MPDL) voltage of comparator 20 a to be compared with the voltage of capacitor 20 a in comparator 28 a. If voltage of capacitor 20 a is lower than the LPUL voltage and/or the MPDL voltage, data in data retaining device 12 a may be considered invalid and needs to be removed without consideration of the relative amount of usage of data retaining device 12 a.

3. Conclusion

While shown and described herein as a method and system for determining a relative amount of usage of a data retaining device, it is understood that the invention further provides various alternative embodiments. For example, in one embodiment, the invention provides a program product stored on a computer-readable medium, which when executed, enables a computer infrastructure to determine a relative amount of usage of a data retaining device. To this extent, the computer-readable medium includes program code, such as data retaining device usage determining system 232 (FIG. 3), which implements the process described herein. It is understood that the term “computer-readable medium” comprises one or more of any type of physical embodiment of the program code. In particular, the computer-readable medium can comprise program code embodied on one or more portable storage articles of manufacture (e.g., a compact disc, a magnetic disk, a tape, etc.), on one or more data storage portions of a computing device, such as memory 220 (FIG. 3) and/or database 228 (FIG. 3), and/or as a data signal traveling over a network (e.g., during a wired/wireless electronic distribution of the program product).

In another embodiment, the invention provides a method of generating a system for determining a relative amount of usage of a data retaining device. In this case, a computer infrastructure, such as computer system 200 (FIG. 3), can be obtained (e.g., created, maintained, having made available to, etc.) and one or more systems for performing the process described herein can be obtained (e.g., created, purchased, used, modified, etc.) and deployed to the computer infrastructure. To this extent, the deployment of each system can comprise one or more of: (1) installing program code on a computing device, such as computing system 200 (FIG. 3), from a computer-readable medium; (2) adding one or more computing devices to the computer infrastructure; and (3) incorporating and/or modifying one or more existing systems of the computer infrastructure, to enable the computer infrastructure to perform the process steps of the invention.

In still another embodiment, the invention provides a business method that performs the process described herein on a subscription, advertising supported, and/or fee basis. That is, a service provider could offer to determine a relative amount of usage of a data retaining device as described herein. In this case, the service provider can manage (e.g., create, maintain, support, etc.) a computer infrastructure, such as computer system 200 (FIG. 3), that performs the process described herein for one or more customers and communicates the results of the determination of the relative amount of usage of a data retaining device to the one or more customers. In return, the service provider can receive payment from the customer(s) under a subscription and/or fee agreement and/or the service provider can receive payment from the sale of advertising to one or more third parties.

As used herein, it is understood that the terms “program code” and “computer program code” are synonymous and mean any expression, in any language, code or notation, of a set of instructions that cause a computing device having an information processing capability to perform a particular function either directly or after any combination of the following: (a) conversion to another language, code or notation; (b) reproduction in a different material form; and/or (c) decompression. To this extent, program code can be embodied as one or more types of program products, such as an application/software program, component software/a library of functions, an operating system, a basic I/O system/driver for a particular computing and/or I/O device, and the like. Further, it is understood that the terms “component” and “system” are synonymous as used herein and represent any combination of hardware and/or software capable of performing some function(s).

The flowcharts and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.

Although specific embodiments have been illustrated and described herein, those of ordinary skill in the art appreciate that any arrangement which is calculated to achieve the same purpose may be substituted for the specific embodiments shown and that the invention has other applications in other environments. This application is intended to cover any adaptations or variations of the present invention. The following claims are in no way intended to limit the scope of the invention to the specific embodiments described herein. 

1. A method for determining a relative amount of usage of a data retaining device, the method comprising: providing a data retaining device, the data retaining device being coupled to a charge storing device in a manner that a use of the data retaining device triggers a charging of the charge storing device by a charge source; measuring a potential of the charge storing device; and determining a relative amount of usage of the data retaining device based on the measured potential.
 2. The method of claim 1, further including comparing the measured potential with at least one of: a potential of a second charge storing device coupled to a second data retaining device; and a preset threshold.
 3. The method of claim 2, further including monitoring whether the measured potential of the charge storing device is valid to indicate a relative amount of usage of the data retaining device.
 4. The method of claim 1, further comprising prioritizing a use of the data retaining device by controlling an amount of charge added to the charge storing device through the charging.
 5. The method of claim 1, wherein the charge storing device is coupled to the charge source through a transistor stack including a first transistor and a second transistor, the first transistor being designed to be turned on by a first signal that is activated when the data retaining device is selected for a use, and the second transistor being designed to be turned on by a second signal that indicates a type of use of the data retaining device.
 6. The method of claim 5, wherein the charge storing device is coupled to multiple charge sources through multiple transistor stacks, each of the multiple transistor stacks corresponding to a specific type of use of the data retaining device.
 7. The method of claim 1, further comprising determining an action upon the data retaining device based on the determined relative amount of usage of the data retaining device.
 8. The method of claim 1, further comprising determining whether a data in the data retaining device is valid by comparing the potential of the charge storing device to a threshold.
 9. A program product stored on a computer-readable medium, which when executed, enables a computer infrastructure to determine a relative amount of usage of a data retaining device, the program product comprising computer program code for enabling the computer infrastructure to: control measuring of a potential of a charge storing device, the charge storing device being coupled to a data retaining device in a manner that a use of the data retaining device triggers a charging of the charge storing device by a charge source; and determine a relative amount of usage of the data retaining device based on the measured potential.
 10. The program product of claim 9, wherein the computer program code is further configured to enable the computer infrastructure to compare the measured potential with at least one of: a potential of a second charge storing device coupled to a second data retaining device; and a preset threshold.
 11. The program product of claim 9, wherein the computer program code is further configured to enable the computer infrastructure to prioritize a use of the data retaining device by controlling an amount of charge added to the charge storing device through the charging.
 12. The program product of claim 9, wherein the charge storing device is coupled to the charge source through a transistor stack including a first transistor and a second transistor, the first transistor being designed to be turned on by a first signal that is activated when the data retaining device is selected for a use, and the second transistor being designed to be turned on by a second signal that indicates a type of use of the data retaining device. 